package org.dashboard.service;

import org.dashboard.bean.AdPermission;

import java.util.List;
import java.util.Map;

public interface AdPermissionService {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(AdPermission record);

    int insertSelective(AdPermission record);

    AdPermission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(AdPermission record);

    int updateByPrimaryKey(AdPermission record);


    void saveUserRoles(List<Integer> roleIds, Integer userId);

    void saveRoleResources(Integer roleId, Integer resourceType,List<Integer> resourceIdList);
}
